package com.mp.approvalreq.dao;


import com.mp.approvalreq.dao.impl.*;

import java.sql.Connection;

public final class DaoFactory {

    public static RedDao getRedDao(Connection conn) {
        return new RedDaoImpl(conn);
    }

    public static SelectApprovalDao getSelectApprovalDao(Connection conn) {
        return new SelectApprovalDaoImpl(conn);
    }

    public static SelectTemplateDao getSelectTemplateDao(Connection conn) {
        return new SelectTemplateDaoImpl(conn);
    }

    public static OperateApprovalDao getOperateApprovalDao(Connection conn) {return new OperateApprovalDaoImpl(conn);}
    
    public static CcDao getCcDao(Connection conn) {return new CcDaoImpl(conn);}

    public static OperateTemplateDao getOperateTemplateDao(Connection conn) { return new OperateTemplateDaoImpl(conn);}
}
